Package words.ranges

Source Code of words.ranges.ApacheRanges

package words.ranges;

import java.io.FileInputStream;

import org.apache.poi.hwpf.HWPFDocument;
import org.apache.poi.hwpf.usermodel.Range;

public class ApacheRanges
{
  public static void main(String[] args) throws Exception
  {
    HWPFDocument doc = new HWPFDocument(new FileInputStream(
        "data/document.doc"));

    Range range = doc.getRange();
    String text = range.text();
   
    System.out.println("Range: " + text);
  }
}
TOP

Related Classes of words.ranges.ApacheRanges

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.